package com.evil.common.account.dto.user;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import java.util.List;

/**
 * @author liyang
 * @date 2022-08-08 00:00
 */
@Data
public class EnableUsersReqDTO {

    /**
     * 企业id
     */
    private Long enterpriseId;

    /**
     * (0:禁用, 1:启用)
     */
    @Range(min = 0, max = 1, message = "启用禁用状态参数错误")
    @NotNull(message = "启用禁用状态参数错误")
    private Integer isEnabled;

    /**
     * 用户id
     */
    @NotEmpty(message = "请选择操作用户")
    private List<Long> userIds;
}
